﻿@using Library
@model Library.Models.ProductCategory

@{
    var productCategoryCulture = Model.ProductCategoryCultures.SingleOrDefault(pcc => pcc.Culture == NOWCulture.CurrentCulture) ?? Model.ProductCategoryCultures.FirstOrDefault();
}
@if (productCategoryCulture != null)
{
    <tr data-id="@Model.Id">
        <th scope="row">@Html.DisplayFor(m => productCategoryCulture.Name)</th>
        <td>@Html.DisplayFor(m => productCategoryCulture.Description)</td>
        <td>
            <a class="btn btn-sm btn-success" href="@Url.Action("Specifications", new { @productCategoryId = Model.Id })"><span class="glyphicon glyphicon-cog"></span>@NOWCulture.GetString("Specifications")</a>
            <button type="button" class="btn btn-sm btn-primary" data-editor="edit" data-id="@Model.Id"><span class="glyphicon glyphicon-edit"></span>@NOWCulture.GetString("Edit")</button>
            <button type="button" class="btn btn-sm btn-danger" data-editor="remove" data-id="@Model.Id"><span class="glyphicon glyphicon-remove"></span>@NOWCulture.GetString("Remove")</button>
        </td>
    </tr>
}

